package com.hmp.recruit.common.util.config;

import java.io.UnsupportedEncodingException;
import java.util.ResourceBundle;

import org.apache.commons.lang3.StringUtils;

public class AppProp {
	private static final ResourceBundle resourceBundle;

	static {
		resourceBundle = ResourceBundle.getBundle("app");
	}

	public static String get(String key) {
		String val = resourceBundle.getString(key);
		if(StringUtils.isBlank(val)) {
			return "";
		}
		try {
			return new String(val.getBytes("ISO-8859-1"), "UTF8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return "";
	}
}
